The Print command displays
the specified information in the output window in text mode.
If a string is passed then it will display the string. If a number
is passed then it will display the number.
This is also true for
variables. If a variable is passed (number or string) then the
value of the variable is printed (not the name of the variable).
e.g
int n=5
Print n
This will print "5"
in the output window.
Once the print statement
has finished it automatically moves on to the next line.
Semi-colon can also be
used with print to allow information to be joined together. e.g.
int x=5
Print "The value of x is ";x
This will print "The
value of x is 5".
Commas can also be used
with Print to space out information.
int x=5
Print "The value of x is ",x
This will print the sentance
but will leave a few spaces between "The value of x is "
and 5.